package chap4.Task;
import java.util.Scanner;
public class Task8 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入第1个数:");
        int a = input.nextInt();
        int i = 2;
        int b;
        int max = a;
        System.out.print("请输入剩下9个数:");
        while (i <= 10) {
            b = input.nextInt();
            max = max > b ? max : b;
            i++;
        }
        System.out.print("输入的10个数中最大值为" + max);
    }

}
